<?php if (!defined('THINK_PATH')) exit(); if($isAjax): ?><!DOCTYPE html>
<html>
    <head>
        <title><?php echo ($title); ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="generator" content="GodSon" />
        <meta name="author" content="LUCAS"/>
        <link rel="stylesheet" href="__ROOT____THM__/bootstrap/easyui.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="__ROOT____THM__/bootstrap/bootstrap.css"  type="text/css" media="screen" >

        <link rel="stylesheet" href="__ROOT____THM__/icon.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="__ROOT____CSS__/css.css" type="text/css" media="screen" />

        <script type="text/javascript" src="__ROOT____JS__/core/easyui1.4/jquery.min.js"></script>
        <script type="text/javascript" src="__ROOT____JS__/core/easyui1.4/jquery.easyui.min.js"></script>

        <script type="text/javascript" src="__ROOT____JS__/locale/easyui-lang-zh_CN.js"></script>
        <script type="text/javascript" src="__ROOT____JS__/core/btutil.js"></script>
        <script type="text/javascript" src="__ROOT____JS__/My97DatePicker/WdatePicker.js"></script>



        <script>
            var _ROOT_ = '__ROOT__';
        </script>



    </head>
    <body>
        <div id="bt_loading" class="loading"></div>
        <div id="bt_loading_progress" class="progress">执行中...</div><?php endif; ?>
<script src="__ROOT____JS__/core/esl.js"></script>
  <script>
        function import_check(){

          var f_content = form1.file.value;
            if(f_content==''){
              alert('请选择您要上传的文件！');
              return false;
            }
          var fileext=f_content.substring(f_content.lastIndexOf("."),f_content.length)
          fileext=fileext.toLowerCase()
          if (fileext!='.xls')
          {
            alert("对不起，导入数据格式必须是xls格式文件哦，请您调整格式后重新上传，谢谢！");
            return false;
          }
        }
</script>

<h1>A3bill</h1>
<div id="A3bill" style="height:300px"></div>

<h1>FHQR</h1>
<div id="YSeals" style="height:300px"></div>

<h1>2014外销数量 From FHQR</h1>
<div id="Seals" style="height:500px"></div>

<h1>本月 From FHQR</h1>
<div id="Seals1" style="height:500px"></div>

<h1>往年发货 From Packge</h1>
<div id="Seals2" style="height:300px"></div>

<h1>外销打包统计 From Packge</h1>
<div id="Packge" style="height:300px"></div>

<script type="text/javascript" charset="utf-8">
        // 路径配置
        var ecs='__ROOT__/Public/Js/core/echarts';
             require.config({
                paths:{ 
                    echarts:ecs,
                    'echarts/chart/bar' : ecs,
                    'echarts/chart/line': ecs,
                    'echarts/chart/pie': ecs,
                    'echarts/chart/k': ecs, 
                }
            });
        // 使用
        require(
                    [
                        'echarts',
                        'echarts/chart/line',
                        'echarts/chart/bar',
                        'echarts/chart/pie'
                    ],

                    function(ec) {
                      var myChart4 = ec.init(document.getElementById('A3bill'));
                        $.get("<?php echo U('fhfx/A3orderbill');?>",function(a){myChart4.setOption(a);});
                      var myChart = ec.init(document.getElementById('Seals'));
                        $.get("<?php echo U('fhfx/getEChartsdata');?>",function(a){myChart.setOption(a);});
                      var myChart0 = ec.init(document.getElementById('Seals1'));
                        $.get("<?php echo U('fhfx/getFMChartsdata');?>",function(a){myChart0.setOption(a);});
                      var myChart1 = ec.init(document.getElementById('Seals2'));
                        $.get("<?php echo U('fhfx/getECFdata');?>",function(a){myChart1.setOption(a);});
                      var myChart2 = ec.init(document.getElementById('Packge'));
                        $.get("<?php echo U('fhfx/getECPdata');?>",function(a){myChart2.setOption(a);});
                      var myChart3 = ec.init(document.getElementById('YSeals'));
                        $.get("<?php echo U('fhfx/getFYChartsdata');?>",function(a){myChart3.setOption(a);});
                    }
        )
</script>